/*************************************************************************
 *                                                                       *
 * This file is part of the FreeMAPs distribution.  For full copyright   *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 * Date:             2011.03.31                                          *
 *                                                                       *
 *************************************************************************/

namespace FreeMAPs
{
/*
inline WarningLevelType
CommonInfo::get_overwrite_exist_file_manner() const
{
    return d_overwrite_exist_file_manner;
}
*/

inline const std::string&
CommonInfo::get_proj_directory() const
{
    return d_proj_directory;
}


inline void
CommonInfo::set_proj_directory(const std::string& proj_directory)
{
    d_proj_directory = proj_directory;
}

/*
inline bool
CommonInfo::do_log_all_nodes() const
{
    return d_do_log_all_nodes;
}


inline bool
CommonInfo::do_performance_log() const
{
    return d_do_performance_log;
}
*/

inline const std::string&
CommonInfo::get_proj_name() const
{
    return d_proj_name;
}


inline void
CommonInfo::set_proj_name(const std::string& proj_name)
{
    d_proj_name = proj_name;
}


inline int
CommonInfo::get_dim() const
{
    return d_dim;
}


inline void
CommonInfo::set_dim(const int dim)
{
    d_dim = dim;
}


/*
inline int
CommonInfo::get_space_degree() const
{
    return d_space_degree;
}


inline void
CommonInfo::set_space_degree(
    const int degree)
{
    d_space_degree = degree;
}


inline bool
CommonInfo::is_axial_symmetry() const
{
    return d_is_axial_symmetry;
}


// inline Axis
// CommonInfo::get_axis_of_symmetry() const
// {
//     FREEMAPS_ASSERT (d_is_axial_symmetry);
// 
//     return d_axis_of_symmetry;
// }


inline double
CommonInfo::get_offset_of_axis() const
{
    FREEMAPS_ASSERT (d_is_axial_symmetry);

    return d_offset_of_axis;
}


inline bool
CommonInfo::do_from_restart() const
{
    return d_do_from_restart;
}


inline const std::string&
CommonInfo::get_restart_read_directory() const
{
    return d_restart_read_directory;
}


inline int
CommonInfo::get_restore_number() const
{
    return d_restore_number;
}


inline bool
CommonInfo::do_write_restart() const
{
    return d_do_write_restart;
}


inline bool
CommonInfo::save_single_restart_file() const
{
    return d_save_single_restart_file;
}


inline const std::string&
CommonInfo::get_restart_write_directory() const
{
    return d_restart_write_directory;
}


inline int
CommonInfo::get_restart_interval() const
{
    return d_restart_interval;
}


inline int
CommonInfo::get_max_num_time_steps() const
{
    return d_max_num_time_steps;
}


inline bool
CommonInfo::use_c_code_to_evaluate_function() const
{
    return d_use_c_code_to_evaluate_function;
}
*/

inline bool
CommonInfo::stop_when_numeric_limits_reached() const
{
    return d_stop_when_numeric_limits_reached;
}

/*
inline int
CommonInfo::get_max_ghost_width() const
{
    FREEMAPS_ASSERT (d_is_max_ghost_width_decided);

    return d_max_ghost_width;
}


inline void
CommonInfo::update_max_ghost_width(
    const int width)
{
    FREEMAPS_ASSERT (!d_is_max_ghost_width_decided);
    d_max_ghost_width = std::max (d_max_ghost_width, width);
}


inline bool
CommonInfo::is_max_ghost_width_decided() const
{
    return d_is_max_ghost_width_decided;
}


inline void
CommonInfo::set_max_ghost_width_decided_flag(
    const bool flag)
{
    d_is_max_ghost_width_decided = flag;
}


inline int
CommonInfo::get_iteration_number() const
{
    return d_iteration_number;
}


inline void
CommonInfo::update_iteration_number() const
{
    ++d_iteration_number;
}*/

}
